package com.ling.rabbitmq.obj;


import com.ling.rabbitmq.model.User;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "obj")
public class ObjectReceiver {

    @RabbitHandler
    private void process(User user) {
        System.out.println("Receiver:" + user.toString());
    }

}
